200
|
How do I arrange my columns on multiple lines

with AxComboBox1 do
begin
HeaderHeight := 32;
(Columns.Add('') as EXCOMBOBOXLib.Column).HTMLCaption := 'Line 1<br>Line 2';
end
|
199
|
How can I display all cells using HTML format

with AxComboBox1 do
begin
(Columns.Add('HTML') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat] := TObject(1);
Items.AddItem('<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.');
end
|
198
|
How can I display all cells using multiple lines

with AxComboBox1 do
begin
(Columns.Add('MultipleLine') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine] := TObject(False);
(Columns.Add('SingleLine') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine] := TObject(True);
with Items do
begin
CellCaption[TObject(AddItem('This is a bit of long text that should break the line')),TObject(1)] := 'this is a bit of long text that''s displayed on a single line';
end;
end
|
197
|
How do change the vertical alignment for all cells in the column

with AxComboBox1 do
begin
(Columns.Add('MultipleLine') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine] := TObject(False);
(Columns.Add('VAlign') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellVAlignment] := TObject(2);
with Items do
begin
CellCaption[TObject(AddItem('This is a bit of long text that should break the line')),TObject(1)] := 'bottom';
end;
with Items do
begin
CellCaption[TObject(AddItem('This is a bit of long text that should break the line')),TObject(1)] := 'bottom';
end;
end
|
196
|
How do change the foreground color for all cells in the column

with AxComboBox1 do
begin
(Columns.Add('ForeColor') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellForeColor] := TObject(255);
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
195
|
How do change the background color for all cells in the column

with AxComboBox1 do
begin
(Columns.Add('BackColor') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellBackColor] := TObject(255);
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
194
|
How do I show buttons for all cells in the column

with AxComboBox1 do
begin
with (Columns.Add('Button') as EXCOMBOBOXLib.Column) do
begin
Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasButton] := TObject(True);
Def[EXCOMBOBOXLib.DefColumnEnum.exCellButtonAutoWidth] := TObject(True);
end;
Items.AddItem(' Button 1 ');
Items.AddItem(' Button 2 ');
end
|
193
|
How do I show buttons for all cells in the column

with AxComboBox1 do
begin
(Columns.Add('Button') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasButton] := TObject(True);
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
192
|
How do I display radio buttons for all cells in the column

with AxComboBox1 do
begin
(Columns.Add('Radio') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasRadioButton] := TObject(True);
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
191
|
How do I display checkboxes for all cells in the column

with AxComboBox1 do
begin
(Columns.Add('Check') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox] := TObject(True);
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
190
|
How can I display a tooltip when the cursor hovers the column

with AxComboBox1 do
begin
(Columns.Add('tooltip') as EXCOMBOBOXLib.Column).ToolTip := 'This is a bit of text that is shown when user hovers the column.';
end
|
189
|
Is there any function to assign a key to a column instead using its name or capion

with AxComboBox1 do
begin
(Columns.Add('Data') as EXCOMBOBOXLib.Column).Key := 'DKey';
Columns.Item['DKey'].Caption := 'new caption';
end
|
188
|
Is there any function to assign any extra data to a column

with AxComboBox1 do
begin
(Columns.Add('Data') as EXCOMBOBOXLib.Column).Data := 'your extra data';
end
|
187
|
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header

with AxComboBox1 do
begin
(Columns.Add('Sort') as EXCOMBOBOXLib.Column).DefaultSortOrder := True;
end
|
186
|
How can I specify the maximum width for the column, if I use WidthAutoResize property

with AxComboBox1 do
begin
with (Columns.Add('Auto') as EXCOMBOBOXLib.Column) do
begin
WidthAutoResize := True;
MinWidthAutoResize := 32;
MaxWidthAutoResize := 128;
end;
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
185
|
How can I specify the minimum width for the column, if I use WidthAutoResize property

with AxComboBox1 do
begin
with (Columns.Add('Auto') as EXCOMBOBOXLib.Column) do
begin
WidthAutoResize := True;
MinWidthAutoResize := 32;
end;
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
184
|
Is there any option to resize the column based on its data, captions

with AxComboBox1 do
begin
(Columns.Add('A') as EXCOMBOBOXLib.Column).WidthAutoResize := True;
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
183
|
How can I align the icon in the column's header in the center

with AxComboBox1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
with (Columns.Add('') as EXCOMBOBOXLib.Column) do
begin
HeaderImage := 1;
HeaderImageAlignment := EXCOMBOBOXLib.AlignmentEnum.CenterAlignment;
end;
end
|
182
|
How do I align the icon in the column's header to the right

with AxComboBox1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
with (Columns.Add('ColumnName') as EXCOMBOBOXLib.Column) do
begin
HeaderImage := 1;
HeaderImageAlignment := EXCOMBOBOXLib.AlignmentEnum.RightAlignment;
end;
end
|
181
|
How do I show or hide the sorting icons, but still need sorting

with AxComboBox1 do
begin
(Columns.Add('Sorted') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortAscending;
Columns.Item[TObject(0)].DisplaySortIcon := False;
end
|
180
|
How do I enable or disable the entire column

with AxComboBox1 do
begin
Columns.Add('C1');
(Columns.Add('Disabled') as EXCOMBOBOXLib.Column).Enabled := False;
with Items do
begin
CellCaption[TObject(AddItem(TObject(0))),TObject(1)] := '0.1';
end;
with Items do
begin
CellCaption[TObject(AddItem(TObject(1))),TObject(1)] := '1.1';
end;
end
|
179
|
How do I disable drag and drop columns

with AxComboBox1 do
begin
(Columns.Add('C1') as EXCOMBOBOXLib.Column).AllowDragging := False;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).AllowDragging := False;
end
|
178
|
How do I disable resizing a column at runtime

with AxComboBox1 do
begin
(Columns.Add('Unsizable') as EXCOMBOBOXLib.Column).AllowSizing := False;
Columns.Add('C2');
Columns.Add('C3');
Columns.Add('C4');
end
|
177
|
How can I align the column to the right, and its caption too

with AxComboBox1 do
begin
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
Alignment := EXCOMBOBOXLib.AlignmentEnum.RightAlignment;
HeaderAlignment := EXCOMBOBOXLib.AlignmentEnum.RightAlignment;
end;
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
176
|
How can I align the column to the right

with AxComboBox1 do
begin
(Columns.Add('Column') as EXCOMBOBOXLib.Column).Alignment := EXCOMBOBOXLib.AlignmentEnum.RightAlignment;
Items.AddItem(TObject(0));
Items.AddItem(TObject(1));
end
|
175
|
How do I change the column's caption

with AxComboBox1 do
begin
(Columns.Add('Column') as EXCOMBOBOXLib.Column).Caption := 'new caption';
end
|
174
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it

with AxComboBox1 do
begin
set_FormatAnchor(False,'<b><u><fgcolor=880000> </fgcolor></u></b>');
Columns.Add('Column');
with Items do
begin
CellCaptionFormat[TObject(AddItem('Just an <a1>anchor</a> element ...')),TObject(0)] := EXCOMBOBOXLib.CaptionFormatEnum.exHTML;
end;
with Items do
begin
CellCaptionFormat[TObject(AddItem('Just another <a2>anchor</a> element ...')),TObject(0)] := EXCOMBOBOXLib.CaptionFormatEnum.exHTML;
end;
Items.AddItem('next item');
end
|
173
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions

with AxComboBox1 do
begin
set_FormatAnchor(True,'<b><u><fgcolor=FF0000> </fgcolor></u></b>');
Columns.Add('Column');
with Items do
begin
CellCaptionFormat[TObject(AddItem('Just an <a1>anchor</a> element ...')),TObject(0)] := EXCOMBOBOXLib.CaptionFormatEnum.exHTML;
end;
with Items do
begin
CellCaptionFormat[TObject(AddItem('Just another <a2>anchor</a> element ...')),TObject(0)] := EXCOMBOBOXLib.CaptionFormatEnum.exHTML;
end;
end
|
172
|
Can I change the font for the tooltip

with AxComboBox1 do
begin
ToolTipDelay := 1;
ToolTipWidth := 364;
(Columns.Add('tootip') as EXCOMBOBOXLib.Column).ToolTip := '<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>';
end
|
171
|
Can I change the font for the tooltip

with AxComboBox1 do
begin
ToolTipDelay := 1;
with ToolTipFont do
begin
Name := 'Tahoma';
Size := 14;
end;
ToolTipWidth := 364;
(Columns.Add('tootip') as EXCOMBOBOXLib.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
170
|
Can I change the order of the buttons in the scroll bar

with AxComboBox1 do
begin
set_ScrollOrderParts(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,'t,l,r');
set_ScrollOrderParts(EXCOMBOBOXLib.ScrollBarEnum.exVScroll,'t,l,r');
end
|
169
|
The thumb size seems to be very small. Can I make it bigger

with AxComboBox1 do
begin
ColumnAutoResize := False;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C3') as EXCOMBOBOXLib.Column).Width := 256;
set_ScrollThumbSize(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,64);
end
|
168
|
How can I display my text on the scroll bar, using a different font

with AxComboBox1 do
begin
set_ScrollPartCaption(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exThumbPart,'This is <s><font Tahoma;12> just </font></s> text');
ColumnAutoResize := False;
ScrollHeight := 20;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C3') as EXCOMBOBOXLib.Column).Width := 256;
end
|
167
|
How can I display my text on the scroll bar, using a different font

with AxComboBox1 do
begin
set_ScrollPartCaption(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exThumbPart,'This is just a text');
get_ScrollFont(EXCOMBOBOXLib.ScrollBarEnum.exHScroll).Size := 12;
ColumnAutoResize := False;
ScrollHeight := 20;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C3') as EXCOMBOBOXLib.Column).Width := 256;
end
|
166
|
How can I display my text on the scroll bar

with AxComboBox1 do
begin
set_ScrollPartCaption(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exThumbPart,'this is just a text');
ColumnAutoResize := False;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C3') as EXCOMBOBOXLib.Column).Width := 256;
end
|
165
|
How do I enlarge or change the size of the control's scrollbars

with AxComboBox1 do
begin
ScrollHeight := 18;
ScrollWidth := 18;
ScrollButtonWidth := 18;
ScrollButtonHeight := 18;
end
|
164
|
How do I assign a tooltip to a scrollbar

with AxComboBox1 do
begin
set_ScrollToolTip(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,'This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar');
ColumnAutoResize := False;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).Width := 256;
(Columns.Add('C3') as EXCOMBOBOXLib.Column).Width := 256;
end
|
163
|
How do I assign an icon to the button in the scrollbar

with AxComboBox1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,True);
set_ScrollPartCaption(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,'<img>1</img>');
ScrollHeight := 18;
ScrollButtonWidth := 18;
end
|
162
|
I need to add a button in the scroll bar. Is this possible

with AxComboBox1 do
begin
set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,True);
set_ScrollPartCaption(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,'1');
end
|
161
|
Can I display an additional buttons in the scroll bar

with AxComboBox1 do
begin
set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,True);
set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB2Part,True);
set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exRightB6Part,True);
set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exRightB5Part,True);
end
|
160
|
How can I display a custom size picture to a cell or item

with AxComboBox1 do
begin
DefaultItemHeight := 48;
Columns.Add('C1');
with Items do
begin
CellPicture[TObject(AddItem('Text')),TObject(0)] := AxComboBox1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)');
end;
end
|
159
|
How can I display a multiple pictures to a cell or item

with AxComboBox1 do
begin
DefaultItemHeight := 48;
set_HTMLPicture('pic1','c:\exontrol\images\zipdisk.gif');
set_HTMLPicture('pic2','c:\exontrol\images\auction.gif');
Columns.Add('C1');
with Items do
begin
CellCaptionFormat[TObject(AddItem('<img>pic1</img> Text <img>pic2</img> another text ...')),TObject(0)] := EXCOMBOBOXLib.CaptionFormatEnum.exHTML;
end;
end
|
158
|
How do I change the column's foreground color for numbers between an interval - Range

with AxComboBox1 do
begin
with ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Nil) do
begin
Bold := True;
ForeColor := $ff;
ApplyTo := EXCOMBOBOXLib.FormatApplyToEnum($1);
end;
Columns.Add('N1');
Columns.Add('N2');
with Items do
begin
CellCaption[TObject(AddItem(TObject(1))),TObject(1)] := TObject(2);
end;
with Items do
begin
CellCaption[TObject(AddItem(TObject(3))),TObject(1)] := TObject(3);
end;
with Items do
begin
CellCaption[TObject(AddItem(TObject(10))),TObject(1)] := TObject(11);
end;
with Items do
begin
CellCaption[TObject(AddItem(TObject(13))),TObject(1)] := TObject(31);
end;
SearchColumnIndex := 1;
end
|
157
|
How do I change the item's foreground color for numbers between an interval - Range

with AxComboBox1 do
begin
ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Nil).ForeColor := $ff;
Columns.Add('Numbers');
Items.AddItem(TObject(1));
Items.AddItem(TObject(2));
Items.AddItem(TObject(10));
Items.AddItem(TObject(20));
end
|
156
|
How do I change the item's background color for numbers less than a value

with AxComboBox1 do
begin
ConditionalFormats.Add('%0 < 10',Nil).BackColor := $ff;
Columns.Add('Numbers');
Items.AddItem(TObject(1));
Items.AddItem(TObject(2));
Items.AddItem(TObject(10));
Items.AddItem(TObject(20));
end
|
155
|
How do I underline the numbers greater than a value

with AxComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Nil).Underline := True;
Columns.Add('Numbers');
Items.AddItem(TObject(1));
Items.AddItem(TObject(2));
Items.AddItem(TObject(10));
Items.AddItem(TObject(20));
end
|
154
|
How do I highlight in italic the numbers greater than a value

with AxComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Nil).StrikeOut := True;
Columns.Add('Numbers');
Items.AddItem(TObject(1));
Items.AddItem(TObject(2));
Items.AddItem(TObject(10));
Items.AddItem(TObject(20));
end
|
153
|
How do I highlight in italic the numbers greater than a value

with AxComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Nil).Italic := True;
Columns.Add('Numbers');
Items.AddItem(TObject(1));
Items.AddItem(TObject(2));
Items.AddItem(TObject(10));
Items.AddItem(TObject(20));
end
|
152
|
How do I highlight in bold the numbers greater than a value

with AxComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Nil).Bold := True;
Columns.Add('Numbers');
Items.AddItem(TObject(1));
Items.AddItem(TObject(2));
Items.AddItem(TObject(10));
Items.AddItem(TObject(20));
end
|
151
|
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
LinesAtRoot := EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot;
HasButtons := EXCOMBOBOXLib.ExpandButtonEnum.exCustom;
set_HasButtonsCustom(False,16777216);
set_HasButtonsCustom(True,33554432);
Columns.Add('Column');
with Items do
begin
h := AddItem('Root 1');
InsertItem(h,Nil,'Child 1');
InsertItem(h,Nil,'Child 2');
ExpandItem[h] := True;
h := AddItem('Root 2');
InsertItem(h,Nil,'Child');
end;
end
|
150
|
Can I use your EBN files to change the visual appearance for radio buttons

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
set_RadioImage(False,16777216);
set_RadioImage(True,33554432);
(Columns.Add('Radio') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasRadioButton] := TObject(True);
with Items do
begin
AddItem('Radio 1');
CellState[TObject(AddItem('Radio 2')),TObject(0)] := 1;
AddItem('Radio 3');
end;
end
|
149
|
Can I use your EBN files to change the visual appearance for checkbox cells

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
set_CheckImage(EXCOMBOBOXLib.CheckStateEnum.Unchecked,16777216);
set_CheckImage(EXCOMBOBOXLib.CheckStateEnum.Checked,33554432);
(Columns.Add('Check') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox] := TObject(True);
with Items do
begin
AddItem('Check 1');
CellState[TObject(AddItem('Check 2')),TObject(0)] := 1;
end;
end
|
148
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumb,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbP,$2000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbH,$3000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSThumb,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSThumbP,$2000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSThumbH,$3000000);
ColumnAutoResize := False;
ScrollBySingleLine := True;
(Columns.Add('S') as EXCOMBOBOXLib.Column).Width := 483;
with Items do
begin
ItemHeight[AddItem('Item 1')] := 248;
end;
Items.AddItem('Item 2');
end
|
147
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumb,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbP,$2000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbH,$3000000);
ColumnAutoResize := False;
(Columns.Add('S') as EXCOMBOBOXLib.Column).Width := 483;
end
|
146
|
I've seen that you can change the visual appearance for the scroll bar. How can I do that

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSBtn,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSBtnP,$2000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSBtnH,$3000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSBack,$f0f0f0);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSBack,$f0f0f0);
set_Background(Integer(EXCOMBOBOXLib.BackgroundPartEnum.exScrollHoverAll) Or Integer(EXCOMBOBOXLib.BackgroundPartEnum.exDateScrollThumb),$f0f0f0);
(Columns.Add('S') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('Level 1') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('Level 2') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('Level 3') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('E1') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('E2') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('E3') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('E4') as EXCOMBOBOXLib.Column).Width := 32;
ColumnAutoResize := False;
end
|
145
|
Is there any option to highligth the column from the cursor - point

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exCursorHoverColumn,$1000000);
(Columns.Add('S') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('Level 1') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('Level 2') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('Level 3') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('E1') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('E2') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('E3') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('E4') as EXCOMBOBOXLib.Column).Width := 32;
end
|
144
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSelBackColorFilter,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSelForeColorFilter,$1414ff);
(Columns.Add('Filter') as EXCOMBOBOXLib.Column).DisplayFilterButton := True;
end
|
143
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateHeader,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateTodayUp,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateTodayDown,$2000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateScrollThumb,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateScrollRange,$e6e6e6);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateSeparatorBar,$e6e6e6);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateSelect,$1000000);
with (Columns.Add('Date') as EXCOMBOBOXLib.Column) do
begin
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exDate;
DisplayFilterButton := True;
DisplayFilterDate := True;
end;
end
|
142
|
How do I change the visual aspect of the close button in the filter bar, using EBN

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exFooterFilterBarButton,$1000000);
(Columns.Add('Filter') as EXCOMBOBOXLib.Column).FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
ApplyFilter();
end
|
141
|
How do I change the visual aspect of buttons in the cell, using EBN

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exCellButtonUp,$1000000);
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSizeGrip,$2000000);
SelForeColor := Color.FromArgb(0,0,0);
ShowFocusRect := False;
(Columns.Add('Column 1') as EXCOMBOBOXLib.Column).Def[EXCOMBOBOXLib.DefColumnEnum.exCellHasButton] := TObject(True);
Items.AddItem('Button 1');
Items.AddItem('Button 2');
Columns.Add('Column 2');
end
|
140
|
How do I change the visual aspect of the drop down filter button, using EBN

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHeaderFilterBarButton,$1000000);
(Columns.Add('Filter') as EXCOMBOBOXLib.Column).DisplayFilterButton := True;
end
|
139
|
Is there any function to get the control's data in your x-script format / template

with AxComboBox1 do
begin
Columns.Add('Column');
Items.AddItem('ToTemplate()');
end
|
138
|
How do I enable resizing the columns at runtime

with AxComboBox1 do
begin
ColumnsAllowSizing := True;
MarkSearchColumn := False;
HeaderVisible := False;
Columns.Add('Column 1');
Columns.Add('Column 2');
DrawGridLines := EXCOMBOBOXLib.GridLinesEnum.exVLines;
with Items do
begin
CellCaption[TObject(AddItem('Item 1')),TObject(1)] := 'Sub Item 1';
end;
with Items do
begin
CellCaption[TObject(AddItem('Item 2')),TObject(1)] := 'Sub Item 2';
end;
end
|
137
|
How do I enable resizing ( changing the height ) the items at runtime

with AxComboBox1 do
begin
ItemsAllowSizing := EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeItem;
ScrollBySingleLine := True;
Columns.Add('Column');
Items.AddItem('Item 1');
with Items do
begin
ItemHeight[AddItem('Item 2')] := 48;
end;
Items.AddItem('Item 3');
end
|
136
|
How can I sort by multiple columns

with AxComboBox1 do
begin
SingleSort := False;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortAscending;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortDescending;
(Columns.Add('C3') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortAscending;
end
|
135
|
How can I add several columns to control's sort bar

with AxComboBox1 do
begin
SortBarVisible := True;
SortBarColumnWidth := 48;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortAscending;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortDescending;
end
|
134
|
How can I change the width of the columns being displayed in the sort bar

with AxComboBox1 do
begin
SortBarVisible := True;
SortBarColumnWidth := 48;
(Columns.Add('C1') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortAscending;
(Columns.Add('C2') as EXCOMBOBOXLib.Column).SortOrder := EXCOMBOBOXLib.SortOrderEnum.SortDescending;
end
|
133
|
How can I change the height of the sort bar's

with AxComboBox1 do
begin
SortBarVisible := True;
SortBarHeight := 48;
end
|
132
|
How can I change the sort bar's foreground color

with AxComboBox1 do
begin
SortBarVisible := True;
ForeColorSortBar := Color.FromArgb(255,0,0);
end
|
131
|
How can I change the visual appearance of the control's sort bar, using EBN files

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
SortBarVisible := True;
(GetOcx() as EXCOMBOBOXLib.ComboBox).BackColorSortBar := $1000000;
(GetOcx() as EXCOMBOBOXLib.ComboBox).BackColorSortBarCaption := $2000000;
Appearance := EXCOMBOBOXLib.AppearanceEnum.None2;
end
|
130
|
How can I change the sort bar's background color

with AxComboBox1 do
begin
SortBarVisible := True;
BackColorSortBar := Color.FromArgb(255,0,0);
BackColorSortBarCaption := Color.FromArgb(128,0,0);
end
|
129
|
How can I change the default caption being displayed in the control's sort bar

with AxComboBox1 do
begin
SortBarVisible := True;
SortBarCaption := 'new caption';
end
|
128
|
How can I show the locked / fixed items on the bottom side of the control

with AxComboBox1 do
begin
ShowLockedItems := True;
Columns.Add('Column');
with Items do
begin
LockedItemCount[EXCOMBOBOXLib.VAlignmentEnum.exMiddle] := 2;
CellCaption[TObject(LockedItem[EXCOMBOBOXLib.VAlignmentEnum.exMiddle,0]),TObject(0)] := 'locked item 1';
CellCaption[TObject(LockedItem[EXCOMBOBOXLib.VAlignmentEnum.exMiddle,1]),TObject(0)] := 'locked item 2';
AddItem('un-locked item');
end;
end
|
127
|
How can I show the locked / fixed items

with AxComboBox1 do
begin
ShowLockedItems := True;
Columns.Add('Column');
with Items do
begin
LockedItemCount[EXCOMBOBOXLib.VAlignmentEnum.exTop] := 2;
CellCaption[TObject(LockedItem[EXCOMBOBOXLib.VAlignmentEnum.exTop,0]),TObject(0)] := 'locked item 1';
CellCaption[TObject(LockedItem[EXCOMBOBOXLib.VAlignmentEnum.exTop,1]),TObject(0)] := 'locked item 2';
AddItem('un-locked item');
end;
end
|
126
|
How can I hide the locked / fixed items

with AxComboBox1 do
begin
ShowLockedItems := False;
Columns.Add('Column');
with Items do
begin
LockedItemCount[EXCOMBOBOXLib.VAlignmentEnum.exTop] := 1;
CellCaption[TObject(LockedItem[EXCOMBOBOXLib.VAlignmentEnum.exTop,0]),TObject(0)] := 'locked item';
AddItem('un-locked item');
end;
end
|
125
|
How can I show the control's sort bar

with AxComboBox1 do
begin
SortBarVisible := True;
end
|
124
|
How can I change the header's background color, when multiple levels are displayed

with AxComboBox1 do
begin
BackColorLevelHeader := Color.FromArgb(250,0,0);
(Columns.Add('S') as EXCOMBOBOXLib.Column).Width := 32;
(Columns.Add('Level 1') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('Level 2') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
(Columns.Add('Level 3') as EXCOMBOBOXLib.Column).LevelKey := TObject(1);
end
|
123
|
How do I expand automatically the items while user types characters to searching for something ( incremental searching )

with AxComboBox1 do
begin
ExpandOnSearch := True;
LinesAtRoot := EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot;
AutoSearch := True;
(Columns.Add('Column') as EXCOMBOBOXLib.Column).AutoSearch := EXCOMBOBOXLib.AutoSearchEnum.exContains;
with Items do
begin
InsertItem(InsertItem(AddItem('text'),Nil,'some text'),Nil,'another text');
InsertItem(InsertItem(AddItem('text'),Nil,'some text'),Nil,'another text');
end;
end
|
122
|
Do you have some function to load data from a safe array

with AxComboBox1 do
begin
Columns.Add('Column');
Items.AddItem(TObject(0));
PutItems(GetItems(TObject(0)),Nil);
end
|
121
|
Do you have some function to retrieve all items to a safe array

with AxComboBox1 do
begin
Columns.Add('Column');
Items.AddItem(TObject(0));
PutItems(GetItems(TObject(0)),Nil);
Items.AddItem(TObject(1));
PutItems(GetItems(TObject(0)),Nil);
Items.AddItem(TObject(2));
PutItems(GetItems(TObject(0)),Nil);
Items.AddItem(TObject(3));
end
|
120
|
How can I hide a column

with AxComboBox1 do
begin
(Columns.Add('Hidden') as EXCOMBOBOXLib.Column).Visible := False;
Columns.Add('2');
Columns.Add('3');
Columns.Add('4');
Columns.Add('5');
end
|
119
|
I've seen that the width of the tooltip is variable. Can I make it larger

with AxComboBox1 do
begin
ToolTipWidth := 328;
(Columns.Add('tootip') as EXCOMBOBOXLib.Column).ToolTip := 'this is a tooltip that should be very very very very very very very long';
end
|
118
|
How do I disable showing the tooltip for all control
with AxComboBox1 do
begin
ToolTipDelay := 0;
(Columns.Add('tootip') as EXCOMBOBOXLib.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
117
|
How do I let the tooltip being displayed longer

with AxComboBox1 do
begin
ToolTipPopDelay := 10000;
(Columns.Add('tootip') as EXCOMBOBOXLib.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
116
|
How do I show the tooltip quicker

with AxComboBox1 do
begin
ToolTipDelay := 1;
(Columns.Add('tootip') as EXCOMBOBOXLib.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
115
|
How do I change the caption being displayed in the control's filter bar

with AxComboBox1 do
begin
FilterBarCaption := 'your filter caption';
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
end;
ApplyFilter();
end
|
114
|
How do I search case sensitive, using your incremental search feature

with AxComboBox1 do
begin
AutoSearch := True;
ASCIILower := '';
with Columns do
begin
(Add('exStartWith') as EXCOMBOBOXLib.Column).AutoSearch := EXCOMBOBOXLib.AutoSearchEnum.exStartWith;
(Add('exContains') as EXCOMBOBOXLib.Column).AutoSearch := EXCOMBOBOXLib.AutoSearchEnum.exContains;
end;
with Items do
begin
CellCaption[TObject(AddItem('text')),TObject(1)] := 'another text';
end;
with Items do
begin
CellCaption[TObject(AddItem('text')),TObject(1)] := 'another text';
end;
end
|
113
|
How do I disable the control

with AxComboBox1 do
begin
Enabled := False;
end
|
112
|
How do I enable the incremental search feature within a column

with AxComboBox1 do
begin
AutoSearch := True;
with Columns do
begin
(Add('exStartWith') as EXCOMBOBOXLib.Column).AutoSearch := EXCOMBOBOXLib.AutoSearchEnum.exStartWith;
(Add('exContains') as EXCOMBOBOXLib.Column).AutoSearch := EXCOMBOBOXLib.AutoSearchEnum.exContains;
end;
with Items do
begin
CellCaption[TObject(AddItem('text')),TObject(1)] := 'another text';
end;
with Items do
begin
CellCaption[TObject(AddItem('text')),TObject(1)] := 'another text';
end;
end
|
111
|
How do I call your x-script language

with AxComboBox1 do
begin
with (ExecuteTemplate('Columns.Add(`Column`)') as EXCOMBOBOXLib.Column) do
begin
HeaderStrikeOut := True;
HeaderBold := True;
end;
end
|
110
|
How do I call your x-script language

with AxComboBox1 do
begin
Template := 'Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`';
end
|
109
|
How do I show alternate rows in different background color

with AxComboBox1 do
begin
BackColorAlternate := Color.FromArgb(240,240,240);
Columns.Add('Column');
with Items do
begin
AddItem('Item 1');
AddItem('Item 2');
AddItem('Item 3');
AddItem('Item 4');
AddItem('Item 5');
end;
end
|
108
|
How do I enlarge the drop down filter window

with AxComboBox1 do
begin
FilterBarDropDownHeight := '-320';
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterBarDropDownWidth := '-320';
end;
Items.AddItem('Item 1');
Items.AddItem('Item 2');
end
|
107
|
How do I filter programatically the control

with AxComboBox1 do
begin
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exPattern;
Filter := 'Item*';
end;
Items.AddItem('Item 1');
Items.AddItem('');
Items.AddItem('Item 2');
ApplyFilter();
end
|
106
|
How do I change the font of the control's filterbar

with AxComboBox1 do
begin
FilterBarFont.Size := 20;
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
end;
ApplyFilter();
end
|
105
|
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance

with AxComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
(GetOcx() as EXCOMBOBOXLib.ComboBox).FilterBarBackColor := $1000000;
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
end;
ApplyFilter();
end
|
104
|
How do I change the background color of the control's filterbar

with AxComboBox1 do
begin
FilterBarBackColor := Color.FromArgb(240,240,240);
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
end;
ApplyFilter();
end
|
103
|
How do I change the foreground color of the control's filterbar

with AxComboBox1 do
begin
FilterBarForeColor := Color.FromArgb(255,0,0);
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
end;
ApplyFilter();
end
|
102
|
How do I change the height of the control's filterbar

with AxComboBox1 do
begin
FilterBarHeight := 32;
with (Columns.Add('Column') as EXCOMBOBOXLib.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib.FilterTypeEnum.exBlanks;
end;
ApplyFilter();
end
|
101
|
How do I change the header's foreground color

with AxComboBox1 do
begin
HeaderForeColor := Color.FromArgb(255,0,0);
Columns.Add('Column 1');
Columns.Add('Column 2');
Items.AddItem('Item 1');
end
|